FROM sapmachine:21

WORKDIR /candy-admin

COPY ./target/candy-admin.jar app.jar

EXPOSE 8080

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

CMD java $JAVA_OPTS -jar app.jar --spring.profiles.active=dev
